<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	require("koneksi.php");
	$kode=$_GET["kodemk"];
	$query=mysql_query("select * from penawaran where kodemk='$kode'");
	$row=mysql_fetch_row($query);
	
?>	

<form name="" method="POST" action="edit_jadwal.php">
	<table>
		<tr>
			<td colspan="3">Menu Edit Jadwal</td>
		</tr>
		<tr>
			<td>Rec No</td>
			<td>:</td>
			<td><input name="rec" type="text" value="<? echo "$row[0]"?>"></td>
		</tr>
		<tr>
			<td>Kode MK</td>
			<td>:</td>
			<td><input name="kode" type="text" value="<? echo "$row[1]"?>"></td>
		</tr>
		<tr>
			<td>Semester</td>
			<td>:</td>
			<td><input name="semester" type="text" value="<? echo "$row[2]"?>"></td>
		</tr>
		<tr>
			<td>Periode</td>
			<td>:</td>
			<td><input name="periode" type="text" value="<? echo "$row[3]"?>"></td>
		</tr>
		<tr>
			<td>Dosen</td>
			<td>:</td>
			<td><input name="dosen" type="text" value="<? echo "$row[4]"?>" size="30"></td>
		</tr>
		<tr>
			<td>Sesi</td>
			<td>:</td>
			<td><input name="sesi" type="text" value="<? echo "$row[5]"?>"></td>
		</tr>
		<tr>
			<td>Keterangan</td>
			<td>:</td>
			<td><input name="keterangan" type="text" value="<? echo "$row[6]"?>"></td>
		</tr>
		<tr>
			<td>Hari</td>
			<td>:</td>
			<td><input name="hari" type="text" value="<? echo "$row[7]"?>"></td>
		</tr>
		<tr>
			<td>Mulai Pukul</td>
			<td>:</td>
			<td><input name="mulai" type="text" value="<? echo "$row[8]"?>"></td>
		</tr>
		<tr>
			<td>Selesai Pukul</td>
			<td>:</td>
			<td><input name="selesai" type="text" value="<? echo "$row[9]"?>"></td>
		</tr>
		<tr>
			<td>Jurusan</td>
			<td>:</td>
			<td><input name="jurusan" type="text" value="<? echo "$row[10]"?>"></td>
		</tr>		
		<tr>
			<td colspan="2"><input name="simpan" type="submit" id="simpan" value="Save"></td>
			<td><input name="reset" type="reset" id="reset" value="Reset"></td>
		</tr>
		
	</table>
	<a href="menu_jadwal.php">Back To Menu Jadwal</a>
	<br>
	<a href="menu_admin.php">Back to Menu Admin</a>
</form>
<? 
	}
	else
	echo "Silahkan <a href='index.php'>Login</a> dulu.";
?>